import { post, get } from "@/request";
//初始化房间
export const initRoom = (data:any): Promise<any> => {
  return post('/room/init', data);
};

export const createRoom = (data:any): Promise<any> => {
  return post('/room/create', data);
};

export const getRoomList = async (): Promise<any> => {
  return get<any>(`/room/get`);
};

export const verifyPwd = (roomId:string,password:string): Promise<any> => {
  return post('/room/handleInvite', {"roomId":roomId,"password":password});
};